@using IdentityServer4.Extensions
@{
    var name = Context.User?.IsAuthenticated() == true ? Context.User?.GetDisplayName() : "未登录";
}

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title>@ViewData["Title"] - IdentityServer4统一认证中心</title>
    <link rel="icon" href="~/favicon.ico" type="image/ico">
    <link href="~/lib/light/css/bootstrap.min.css" rel="stylesheet">
    <link href="~/lib/light/css/materialdesignicons.min.css" rel="stylesheet">
    <link href="~/lib/light/css/animate.min.css" rel="stylesheet">
    <link href="~/lib/light/css/style.min.css" rel="stylesheet">
    @await RenderSectionAsync("styles", required: false)
</head>

<body>
    <!--头部信息-->
    <header class="lyear-layout-header" style="padding-left:0px;">
        <nav class="navbar">
            <div class="navbar-left">
                <div class="lyear-aside-toggler">
                    <h3 style="font-size:25px"><a href="~/">统一认证服务</a></h3>
                </div>
            </div>

            <ul class="navbar-right d-flex align-items-center">
                <li class="dropdown dropdown-profile">
                    <a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">
                         <span>@name</span>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-right">
                        <li>
                            <a class="multitabs dropdown-item" data-url="" href="javascript:alert('请前往管理平台查看个人信息！')"><i class="mdi mdi-account"></i> 个人信息</a>
                        </li>
                        <li>
                            <a class="multitabs dropdown-item" data-url="" href="javascript:alert('请前往管理平台修改密码！')"><i class="mdi mdi-lock-outline"></i> 修改密码</a>
                        </li>
                        <li>
                            <a class="dropdown-item" href="javascript:alert('缓存已清除！')"><i class="mdi mdi-delete"></i> 清空缓存</a>
                        </li>
                        <li class="dropdown-divider"></li>
                        <li>
                            <a class="dropdown-item" href="~/account/logout"><i class="mdi mdi-logout-variant"></i> 退出登录</a>
                        </li>
                    </ul>
                </li>
            </ul>

        </nav>

    </header>
    <!--End 头部信息-->
    <div class="container-fluid" style="padding-top:88px !important">
        @RenderBody()
    </div>

    <script type="text/javascript" src="~/lib/light/js/jquery.min.js"></script>
    <script type="text/javascript" src="~/lib/light/js/popper.min.js"></script>
    <script type="text/javascript" src="~/lib/light/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="~/lib/light/js/main.min.js"></script>
    @await RenderSectionAsync("scripts", required: false)
</body>
</html>